﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="UserPassword.ascx.cs"
    Inherits="Portal.Administrator.Users.UserPassword" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelChangePassword" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
    </Triggers>
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="1" class="content" style="width: 100%">
           <tr>
                <td class="header1" colspan="2" align="left">
                    <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Tên truy cập</td>
                <td class="post" align="left" width="75%">
                    <asp:Label ID="lblUsername" runat="server" Font-Bold="True"></asp:Label></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Mật khẩu hiện tại</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtCurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCurrentPassword"
                        ErrorMessage="Chưa nhập mật khẩu"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Mật khẩu mới</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                        ErrorMessage="Chưa nhập mật khẩu"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Xác nhận mật khẩu mới</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtPasswordConfirm" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                        ControlToValidate="txtPasswordConfirm" ErrorMessage="Mật khẩu ko đúng"></asp:CompareValidator></td>
            </tr>            
            <tr>
                <td class="postfooter" colspan="2" valign="middle" align="center">
                    <Button:Update ID="btnUpdate" runat="server" CssClass="pbutton" OnClick="btnUpdate_Click" Text="Cập nhật" />
                        &nbsp;
                    <asp:Button ID="btnCancel" runat="server" CssClass="pbutton" OnClick="btnCancel_Click" Text="Quay lại" /></td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
